﻿#ifndef __AF_RENDER_H__
#define __AF_RENDER_H__

#include "AF_Define.h"

namespace AF
{
	_INTERFACE Renderable;
	class NotRender; //-* Renderable
}
typedef AF::Renderable		AF_IRenderable;
typedef AF::NotRender		AF_CNotRender;

#include "AF_Graphics.h"

namespace AF
{
	/// 渲染方式接口
	/**
	 *  \addindex P
	 */
	_INTERFACE Renderable
	{
	public:
		/// 渲染操作
		virtual bool	Render(Graphics* pGraphics) = 0;
	};

	/// 无渲染类
	class NotRender : public Renderable
	{
	public:
		bool		Render(Graphics* pGraphics)
				{return true;}
	};
}

#endif